rewrite the core library to adapt baidu.com