used file.path() for OS independent file paths