separates routes into groups