run, runSync, runTask, runTaskSync refactor