added a backtrace method to error.php