move all constants etc into method for clean heroku start