implemented flattener tests, which are all succeeding. however, a disturbing number of the jan tests are failing