add option for formatted output