install hook for new text format