connect to services smartly