fix routing by method