Revert "load json config better"

This reverts commit 1bb1320b80426de5f4885e4db80247c277b41eb1.
load json config better