pass config JSON instead of cmdline args, and use map[string]interface{} for config