update tp
update to accept productionMode and widgetSet params