more local config writing stuff