fix routing and secret