fixed the compatibility problems with the text files