updated routes to rm deprecation warning