more elegant way of setting the env vars