makes definition lookup service work with new ASM. Fixes minor bugs.