almost all binary writer + rewriting