change the way how we define a serializer for cassette builders