correct location of upgrade routine