add logic for dev environment env var