sending and receiving messages now working