integrated client side into server