renamed 'location' to 'request'