tmp fix for infinite recursion in to_string marking