make errors the same as zend