move serializer loading to the registry