upgrade and check config even earlier