another improvement in remote communication using socket