work on (de-)serialization