sometimes isDirectory costs a lot
make navigateInsideBar() protected