used names.getfilename() to resolve system paths