change func upgrade
Merge https://github.com/jas0n1ee/XLMS