document queue management