add support for task represented as list