client side code for robopatt