write client side