managedtask was changed to template, no good implementation