use domains inside a task