further cleanup, work on controlling alternate grid
added simple language compatibility