add error message to output, hope its useful