added template error sending to receiver