[enh] implement upgrade script
[enh] bump to 0.5.1