demonReg: add demon registration method