references now match up with files correctly