deserializes simple case classes now