now stores the full path name of a file, extracts files successfully