[ronghao]add register function