as per @jhump's suggestions simplified executing a task. passed to the executor.