fix embedded cartridges controller to cleanly understand json input structure