fixed up a bug with file naming