added dead letter queue and test