add different output modes, add flags for all output files