fix path to api file