support for multi-tasks and multiple targets