manage the serialization for the different options, javadoc