connected to api