adding PHP Errors handler