task: make domain as a required parameter