remove old task taskmgr logic