refactor the task config

refactor the task config