proper stup method
fixed config gen
fixed config generation
fixed creat_config function and test
removed json helpers