changed injections to allow passing json4s format