optimize the main.go router