need to update output stream interface