ignoreMissing is allowed to be a function. fix #11