add skeleton for queue thread