implement NetworkServices.onservicefound and NetworkService.onavailable