set env variables in main app instead