fixed socket uris handling in client lib