* change tasks_dict to array
* fix internal