fix task running + logging