make client more effcient with network code