use struct stat always
use struct stat always