removed "onupgradecomplete" hack