removed redundant try/except in navigation, added attempt to get n with type in toc