move serializer to app class