added logging of lookup calls and responses