fix the way we handle filenames so we can pass the most recent file directly to the user.