using binary format to serialize network
bug