writing deserialization factories