fixes to client side physics simulation