fixed statfs, improved performance