replaced deprecated get-request method