modified xqx_genpath