serialize/deserialize simplification

assume serialized options
no need to flatten