trying to fix factory/controller for retooled json