use the right flags