updated xmap_qid()