modify to use ecase instead of case in LOOKUP-KERNEL-DEFINITION function