fixed lstat stuff