making routes work in run