deserialize cleanup