upgade flags