fix client library checking if service is local