why do you inject the serializer?