added eventmode directory recovery