set environment variables properly