added ability to write a global flag on update-all