wait for service before making service client