add mutex around oracle call
grey out freevars menu item if no range selected
group scope index by package