assemble_routes; remove dead code