update lookup.js for new API naming