refactored place for appserver_get_envs()#