commit which replaces API.hasConnectivity with Connection equivalent (i think)