qid and uint64 impl