for dendropy 4 compatibility
dendro 3 vs 4 changes and addition of profiling flag