client side implementation and refinement of server