re-factoring: using jsonld utils