added list and range task handling