move serializer and validator into own packages