shaokp: add detail routing code