fixes for .txt files