read config data and write to files