switch to env vars