added the ability to look up relations on IR nodes