setup crtls and routes