added text file support