sets up routing