fixed handling of .txt extension