both translateSimple and flushing work now

much cleanup, code simplified a bunch