client write retry, remove unused code, inference geo sleep to not overload google api