Make main more robust, 12 factor configuration