fix routing for txt