added a slice to createRouteslist to allow more efficient parsing