initial work on output_text and output_ok support