set environment variables automatically