changed error code reporting