remove unneeded file extensions