added client side examp;e