register a task