changed the way send message works