added userland function appserver_get_envs()