worked out problems with run_all and write_all