XXX add close/end to queuev