added the capability of specifying the name of new query files