refactor task file