I wonder when this file is supposed to be called? I'm not aware of automatic system and didn't notice registration for 'upgrade', 'upgrade' event?