figured out how error messages get returned