add config and debug classes. renamed pages.php to handlers.php