added save/load using flatbuffers