move to using logger and run sendaction in thread as it runs synchronously by metaps