router file optimized