factor out lookup stuff
improve lookup api
add dependencies lookup
comments