imporved stat mode
imporved stat mode