re-added servicesConnected function