add new code for xiami and baidu