idiotic bugfix: running pre-route hook twice (remnant from debugging, no doubt)