just before adding routes