add callback to close
add setDiffDeep and setArrayDiffDeep convenience methods
use setDiffDeep in queries