add an api for customising how verifying doubles are checked