added routed hosts handling