tweak to allow switch between PDU and text modes