check whether env vars are defined