more json checks, and --url added