added streamer fix for header pointers and switch for define IO in constructor