serialization methods fix