some bug fix on load system and add error reporting state to config.php file