move to env vars and drop unused gem dependencies