took perch out of main index.php