win-loss route and code clean up