add try/catch around transform
rework head engine to use params, remove old unused callbacks