better support for the root entity visiting system