few bug fixes.  learn mode lookup still not working