fix error handling. add NetworkEndianBinaryWriter