support for custom matchers that specific root and object_root