add nesting to tasks