raise an error for unknown file types