fixed pages.php and fileist.php