Accidently removed path directory add event registration