added task ids to the task dict, removed bug when starting tasks