document new queue adapter code