using new API to connect to access point