try new implementation for serializer