update app environment