add condition of smash by db or qry, separate some functions, nucmer calls still buggy sometime the delta files failed to generate