use the committed method rather than opening the file just to get the filename