fix access to api