working message sending/receiving/listening logic