repair missing directories