add output-type control