half-assed byte output stream impl to ease devel