Autoupgrades (fixes #727)