add threads with router example