make config code more robust, differentiate between set and generated config