added wide and long output format flags