[zhuao]add register function