fix requests to api