add support for the file attribute of text