send and received messaging working