moving vars to env