added an upgrade handler (does not save yet)