rewrite navigator.