a bit more general refactoring - it would be good if we could get the menu to go aaway and get a live word by word update when running test sentences...