added upgrader hook