defined cleanurl method for file
added client side socket