add config serializer, not finished