set up routing and stuff