erlang: replaced channel with inter-node handshaking