stat was confusing for struct stat