merge getchangetarget, getmacros and gettype into queryconfig executable