implementing the lookup. nice async stuff