moved template scripts