rename vars within rest.isAuthorized()