move lookup functions into Utils package