[WIP] removing the hash as a place for inifinite options. Adding a class to hold the serialization configuration.