vendor: code cleanup and kylin modify