wip config write functions