remove depreciated flags