remove the nonsense conversions to/from streams and byte arrays