update to query interface. now allows 'reachableFrom .' which searches from the root node. Need to add '.'->root conversion for other commands