merge queue and set API