base routing and loader