some work on grammar
script to make rapid tests easier