try to make the querydialog macro-scriptable