debugged ext drive detection code and daded logger