fixed breakage when using flags.txt