passing error reasons back