integrate the client side code