updated send() so that it only queues messages if async is set to true.