major setup and upgrade