set internal environment