replace environment variables