moved confPath calcs to global var