CHO: importing flags and ideal_stocks