make sure settings env is saved on restarts