using "before templates" hook instead of "before scripts", version bump