using information about updates in response, started to generalize serialization of case classes