refactored to create all tasks from main and specify task priorities centrally