added multitask/singletask support for all api versions