added output_only functionality. if True, will skip input output