replace response queue with tempqueue for each thread