first more or less working version of navi-mode.