reorganize qclib