trying to connect to api