added oninstall to template script