add register function to SmileSDK