updates environment variables