update input-output stream