now supports text files