writing all before chrome reloading