continuing to refactor inventory lookup