minor fixes for routing