@dantleech thanks for your comment. indeed if i postpone altering the query, it works a lot better. i was able to revert the funny hack in walkWhere.