moved client retry count to global const