turn tasks into a dictionary