minor changes to conform to new task api