restored missing client code, and updated backend with  proper rounding