fixed client side bugs - pretty much all of them