lookup function

@garyb @joneshf