refactor the config system
fix .htaccess