diff --git a/document_root/index.php b/document_root/index.php
index bc175e6578f90580aa1719d59c61d4e901ee7b09..6611e6702346a43ff64d2164dd41bce5dec20ee8 100644
--- a/document_root/index.php
+++ b/document_root/index.php
@@ -1,13 +1,14 @@
 <?php
 
 require('./config.php');
-set_include_path(LIBRARY_PATH);
+set_include_path(FRAMEWORK_PATH . '/library');
 set_include_path(get_include_path() . PATH_SEPARATOR . APPLICATION_PATH);
 set_include_path(get_include_path() . PATH_SEPARATOR . APPLICATION_PATH . '/library');
 set_include_path(get_include_path() . PATH_SEPARATOR . APPLICATION_PATH . '/models/rows');
 set_include_path(get_include_path() . PATH_SEPARATOR . APPLICATION_PATH . '/models/tables');
 require_once('Zend.php');
 spl_autoload_register(array('Zend', 'loadClass'));
+spl_autoload_register(array('Nmc', 'loadApplicationClass'));
 
 //$appReg = Nmc_Registry_Application::getInstance();
 $db_config = array('host'      => $db_host,