makes the serializer optional