context index: renamed lookup to search, since we're using that name everywhere else. Also refactored the signtures