restruct tasks file