add an option for the output type