set up routing etc