build gd-dir-querying