extract routes