add .txt format support