separate format code from serializer converter