add TaskRegister and ProcessRegister api