fix routing api