remove dependency on taskregistry