flexi serialization - early prototyping