add text output support