avoid depreciated flag