added correct behaviour for missing flag