[update] using sockets with delimiter \n