added write all to ctrl-s