contract serializer modularity