move setMeta to serializer