simple tree lookup