updated send message workflow. fixed minor bugs