changed the way a task is registered/declared