trying to fix an issue of fstat'ing a file that hasn't been created yet