cleaned out the cruft from index.php, still to get DomDocument involved