move hand-orientation code to client side