require error keys to be present