simplified all cases not dealing with just .html files