added dir stat print debugging