first pass at a lookup function