implemented most of Raptor iostreams