save on env update