template added
adding template and recieving in the consumer thread