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