added snapshot recovery function for queue