added vars to heroku and logic in settings to chose where to get vars from