modified autoloading, added htaccess rewrite