Apply 1.4.2

added template hook replacing core edits