renamed queue to pending messages