removing inout
first version of IOHandler
adding stream object to handler