fix grabbing filenames

file.shortened does not exist anymore