prepare writing the config file - wip