move serializer to namespaced place

it was complaining that this was in the wrong place