added template for ctrl-z trapping