allow choosing output format