improved customized workfores for build and predict and template for local models