added debugging for sending a msg