renaming endpoint to endpointurl because that's what it specifically is