absolute paths to files and checking on opening files