Read/write config files, remove def added