script to transform config files