partially working, asserts for qids failing