added setTimeout in hopes of keeping process running longer in main handler