updated how we load config xml also added check for a fits env variable