the lookup script