debugged the client side stuff