added a little error check into get in case something goes wrong with the response body