added to read methods and tested files/directories