v1.0.7 allow json config as first argument