adapting xml config file