updated routes to take options obj