sending messages fully implemented; receiving not working (implemented)