move config back to json to ease the transition