improvement on sessiontask delegate