changed text params to env vars.