remove global variable for domain
move out task_list into single file