adding a clunky ql_find function