serialization and deserialization
removed the commented code and
crutch