add run tasks
refactor