fixed all bugs except the readdir sync issue
Switch conflict
Fixed noted bugs