pass environment to server