update and upgrade first