move classes to serializer package