add hook to signal