added more methods for overriding the serialization