added error_reporting to debug