fixed issue with counter resolutions. Fixed global scope leak in client.