fix upgrade stupidity
fix flawed firstrun logic