Phineas and Ferb Wiki
Phineas and Ferb Wiki

Is this an International team-up? Oh, you must hate that, Perry the Platypus, a loner like you.

— Heinz Doofenshmitz

Agent P teams up with a former partner, a human agent named Lyla, to stop a hijacked train running along the US/Canadian border. In a past mission, they had a falling out, so Agent P must decide whether or not he can trust Lyla and her unique sense of logic to get them through the mission, defeat Doofenshmirtz and save the train's passengers and Canada's national treasure - a moose named Albert.

Episode Summary

In downtown Seattle, three criminals steal parts from a warehouse and leave in a donut truck. Perry immediately starts following them on his platy-cycle, dodging attempts to knock him off their tail. Shortly after the chase crosses the Canadian border, Perry is able to hook the truck with his grappling hook, but C.O.W.C.A. agent Lyla Lolliberry takes over the chase, as Perry does not have jurisdiction in Canada. Lyla climbs onto the truck but accidentally detaches the metal arm the hook is attached to, allowing the criminals to escape. Perry attempts to continue the chase, but Major Monogram and Carl immediately call him back to headquarters since he still doesn't have any jurisdiction in Canadian soil. Lyla apologizes for the inconvenience, but an angry Perry leaves in a huff, developing a certain hatred for her for letting the criminals escape.

Two months later, it's another normal day: Phineas and Ferb wake up; Candace makes a deal with Linda to clean the bathroom (which she was supposed to do anyway) if she fails to bust the boys that day; and Buford, and Baljeet, and Isabella arrive to assist with the day's project. After walking past all of them, Perry enters his lair through a tree, accidentally crushing a car in the process, and receives his assignment: he must protect Albert the Moose, Canada's national symbol, in order to preserve the upcoming Canada Day ceremonies. However, Albert is riding a train on the U.S.-Canada border, and Perry only has jurisdiction on one side of the train, so Perry will be teaming up with Lyla (who will have jurisdiction on the other side of the train). Perry is furious by this revelation, but Monogram demands him to put aside his grudge, despite his bad blood with her after the failed Seattle assignment, and wishes him luck.

Perry and Lyla arrive at the train at the same time, and they drop into a fine dining car, sharing a booth with Dr. Doofenshmirtz. Before they could question him, Doofenshmirtz points out that they are currently trapped by societal convention - you can't make a scene in a fine dining establishment - and that he's participating in a U.S.-Canada evil exchange program, where he and a Canadian villain will trade evil schemes for a day. Doofenshmirtz promptly reveals his scheme: he has tied up the conductor and hijacked the train using his remote control Train Operator-inator, where he will hand over Albert to his exchange partner, ruining the Canada Day celebration. Lyla figures out that the exchange partner is her arch-nemesis, Professor Bannister, and Doofenshmirtz confirms this. However, Lyla has been trying to eat Doofenshmirtz's fries throughout their conversation, and he expresses how much this annoys him. Lyla gives Perry a wink, and they both begin messing with the fries, causing Doofenshmirtz to make a loud scene, disrupting the fine dining atmosphere.

Recognizing that his social convention trap has been foiled, Doofenshmirtz flees to the next car, but trips over the tied-up conductor. After a brief struggle, Perry ends up with the Train Operator-inator, but Lyla tries to take it from him and they both lose their grip, unintentionally returning it to Doofenshmirtz. They end up fighting again, but they somehow end up beating the conductor instead (much to their embarassment), and Doofenshmirtz escapes through the train's bathroom window, climbing onto the roof. Lyla and Perry follow him, but Lyla falls off after the train make a sharp turn in the tracks; Perry tries to pull her back off, but falls off too, allowing Doofenshmirtz to escape away in the train.

Lyla immediately notices a handcar next to the track, but Perry tries to operate it himself, slowing them down. Lyla teaches Perry how to operate it, and as they travel down the tracks, she metaphorically equates the handcar to teamwork: she and Perry have to work together to complete their mission.

After Doofenshmirtz boots a passenger off at his station (without stopping, though the passenger ends up being instantly transported to his home in a matter of seconds), several commuters notice Perry and Lyla operating the handcar on the adjacent track, and everyone starts taking video of it. Doofenshmirtz's cell phone alerts him to the trending video, and he starts watching it just as Perry kicks him in the face. Doofenshmirtz uses an installed platform to rise to the roof again, and while gloating to the two agents about how he cannot be stopped as long as he has the -inator, a tunnel entrance smashes the remote in his outraised hand. This causes the train to go completely out of control.

Back in Danville, Phineas wonders where Perry is.

On the now-runaway train, Lyla immediately realizes there's an emergency brake in the engine car, and Doofenshmirtz decides to join the two agents in their attempt to stop the train. While running to the engine car, Doofenshmirtz, after dodging three obstacles because he had to tie his shoes, falls into the toilet he'd escaped through earlier, so Lyla and Perry go ahead without him, though Doofenshmirtz managed to catch on later. They reach the engine car, but Lyla is only able to fix the hazard lights, the emergency brake being inoperational. Perry realizes they can save everyone by getting them all into the caboose, where Albert is, so Lyla uses the PA system to tell the passengers to gather in that car. She, Perry, and Doofenshmirtz join the passengers in the caboose, which slows down; Perry had separated that car on the way there. Everyone rejoices that they're saved, but a large claw grabs the caboose and lifts it into the air.

Lyla sees that it's a helicopter that grabbed the caboose, and on the bottom of the helicopter reads 'Bannister Evil Enterprises'. Realizing that Bannister is the one behind this, she and Perry grapple their way into the chopper, Doofenshmirtz climbing up behind them. Bannister remarks that they're now trapped in the helicopter. Doofenshmirtz realizes that Bannister must have finished his scheme early, and Bannister remarks that it was easy; he had to flip one switch on Doof's -inator. Bannister now revels in the fact that he has Albert the Moose in his custody, and an angry Lyla questions him of being a true Canadian. Knowing that she would ask him that, Bannister reveals that he's not actually Canadian: he's from Greenland. His true goal is to remedy the lack of Greenlandic national pride by causing Canadians to forget their national identity, allowing him to annex Canada for Greenland and institute his own pride-producing changes to his homeland, such as a new national anthem. Upon realizing this, Doofenshmirtz argues that Bannister's plan is far too complex to actually work, but Bannister begins apparently arguing with his shoulders. Upon seeing Lyla's confusion, he reveals two magnetic Bannister robots, built using the stolen parts from the Seattle job, whose culprits are playing cards in the helicopter. Lyla reveals that she intentionally let them escape, knowing they'd lead her to Bannister, which made Perry understand why she did it. Lyla and Perry decide to have a helicopter fight against the robots while Doofenshmirtz decides to play cards with the criminals.

During the ensuing Helicopter Fight, Perry and Lyla trick the robots into magnetically attracting each other through the chopper roof, defeating them. In the meantime, Doofenshmirtz wins a card game against the criminals, but this leads to a scuffle against each other. Bannister, realizing that he has lost, throws his Greenland flag on the two agents and parachutes away, but is immediately captured by Peter the Panda in an O.W.C.A. plane; Perry had texted Monogram during the fight, and Monogram sent Peter over for backup. With the villains defeated, Lyla brings the caboose-carrying chopper to the Canada Day celebration.

At the celebration, the Canadians celebrate their country (and Albert), Bannister and his henchmen are all arrested, and Lyla explains to Doof that she had a tracker on the criminals' donut truck. Monogram and Carl arrive to congratulate Lyla and Perry, and Doofenshmirtz suggest they visit Niagara Falls, which the five of them (and Peter) do. As they all leave, Doofenshmirtz ponders how his scheme - the Cloud Magnetiz-inator - turned out.

Back home, Candace runs to get Linda; Phineas wonders how a cloud could have carried away their metal superstructure; and Linda, upon seeing nothing there, hands Candace a toilet brush. Perry walks up to his owners, who greet him, remarking, "A platypus's life is a life of leisure."


Read the transcript of Sidetracked.


End Credits

Monogram apologizes to the viewers on behalf of the show for making fun of Greenland and gives a short explanation of its flag, making no comment about the Canadian stereotypes that were mentioned or featured.


Click here to view more images from "Sidetracked".
View the image gallery for "Sidetracked".

Running Gags

I know what we're gonna do today


Ferb's Line/Oh, there you are, Perry!/The "Too Young" line

Phineas: Good morning, Perry. Ready to start a fun day?
Ferb: Good morning, Perry.
Phineas: Oh, there you are, Perry.

Ferb: Ah, a platypus's life is a life of leisure.

Phineas: Yes, yes it is.

What'cha doin'?

Isabella: Good morning, Perry. What'cha doin'?

Hey, where's Perry?

Phineas: (At the end of part 1) Hey, where's Perry?

Perry's entrance to his lair

Perry lifts a tree outside the house by the bottom of its trunk, making it fall on top of a car.

Evil Jingle

Doofenshmirtz Evil Incorporated! (In his cellphone)

Memorable Quotes

Canadian Border Patrolman: Hey, you can't do that! (to another motorist) Hey, the same thing but in French!
Lyla: You gonna eat those fries?

Doofenshmirtz: Don't touch! Anyway I've got a little math quiz for the both of you. If a train carrying Precious Albert the Moose left British Columbia at eight o'clock in the morning, going eighty mile per hour, what time would it arrive at the Canada Day celebration? Answer? Never! Because I've tied up the conductor, and taken control of the train using my remote control Train-Operator-inator! Right now we are all headed to my scheme exchange partner's secret fortress. (Lyla reaches for the fries again) Hey cut it out, those are mine. Seriously, I can get the waiter over here if you want to order own, but please?
Lyla: This evil exchange partner of yours, what his name?
Doofenshmirtz: I think his name was Sir Railing, or Doctor Stairway, or something.
Lyla: Professor Bannister! Of course, my arch-nemesis. Can I put some gravy on those?
Doofenshmirtz: Seriously, leave my lunch alone. Anyway, after Professor Banister gets the moose, it's going to ruin Canada Day, or you know, whatever. Crazy, right?
Lyla: You know what's really crazy? How good these fries are.
Doofenshmirtz: I am not kidding, leave those alone. I just don't understand it, why do you take my lunch, when you're in the dining car you can have your own lunch. Oh it makes me crazy when people pick at my food. (Lyla winks at Perry, and Perry understands) Seriously, why is your hand out like that? I am seriously going to lose it. (Perry takes a fry) Aw, now you're both doing it!? Stop it! Stop it! Ahh! Oh no, not even taking them but just squishing them! I can't take it. (Stands up) GET YOUR OWN LUNCH!
(Everyone on the train looks at Doofenshmirtz)
Woman: That man is causing such a scene, it make me feel free to break up with you, IN A VERY LOUD MANNER!
(Everybody in the car begins screaming and yelling)

Waiter: I can't stand being a waiter!
(Lyla and Perry enter the train's bathroom, only to see that Doofenshmirtz has escaped, as the window is open)
Lyla: I can't believe it! He left the seat up!
Doofenshmirtz: (on the roof of the train, to the audience) You knew we'd end up up here eventually, right?
Man: Excuse me, conductor? (Doofenshmirtz walks over) You know the train doesn't seem to be stopping at any of the scheduled stations.

Doofenshmirtz: Is that a fact? My apologies straphanger. Wait, which one was your stop?
Man: The next one.
Doofenshmirtz: Oh, don't be concerned, step right this way. (The Man and Doofenshmirtz are standing at a door) So, your wife cooking dinner tonight?
Man: Oh, yes. We're having asparagus tips.
Doofenshmirtz: Asparagus tips, very classy. What's the entrée?
Man: Nova Scotia salmon.

Doofenshmirtz: Mmm-mmm! Delic'. Here's you station! (literally kicks man off train) Say "hi" to your wife for me.
Man: (tumbles across a field, through a playground, and into his house.)
Wife: Well, someone's home early.

Man: The conductor says "hi".
Bannister: Well, well, well. If it isn't C.O.W.C.A.'s best agent, the unfortunately named, Lyla Lolliberry.
Lyla: Listen you, I come from a long alliterative line of Lolliberrys.
Professor Bannister: And that's the problem! We have no national pride. I mean, listen to this.

Bannister plays "Nunarput utoqqarsuanngoravit" on his cell phone

Professor Bannister: Greenland's national anthem. Seriously, does that inspire you to do anything other than ice fish?
Professor Bannister: Jinx you, Lyla Lolliberry! Jinx you!

Background Information

  • When spoken aloud, Lyla's name (לַיְלָה) is Hebrew for night.

Production Information

  • Both Samantha Bee and Kevin McDonald, who play the Canadian counterparts of Perry and Doofenshmirtz, are natives of that country (Bee was born in Toronto, while McDonald was raised in Montreal).
  • This episode aired on Canada Day in Canada.
  • This episode aired exactly five years after "It's About Time!"

International Premieres

  • April 20, 2013 (Disney Channel Israel)
  • May 1, 2013 (Disney Channel Spain and Portugal)
  • May 15, 2013 (Disney Channel France)
  • June 15, 2013 (Disney XD Germany)
  • July 1, 2013 (Family Channel, Canada and Disney XD Canada)
  • July 14, 2013 (Disney XD Italy)
  • August 5, 2013 (Disney XD Poland)
  • August 18, 2013 (Disney Channel Brazil and Latin America)
  • September 7, 2013 (Disney XD Latin America)
  • September 16, 2013 (Disney Channel Russia)
  • October 20, 2013 (Disney Channel Hungary)
  • January 1, 2014 (Disney Channel Asia)


  • In the picture that Perry texts to Major Monogram for back up, Professor Bannister is missing his glasses. The text is also to Minor Monogram instead of Major Monogram.
  • The episode incorrectly states that the Canadian Constitution Act was passed in 1864, when it was actually passed in 1867.
  • At the start of the episode, when Perry is in Canada and Lyla tries to stop the burglars, Lyla is wearing her motorcyclist suit. When she gets off, she still is wearing the suit. However, when she says "Sorry.", she is in her normal clothes.
  • When Lyla and Perry fall off the roof the train, the train's whistle blows. However, the train's engine is very obviously a diesel locomotive, which could not possibly have a steam whistle. An air horn would have been more appropriate.
  • When Doofenshmirtz goes up to his Escape Platform, his hand with the Train Operator-inator passes through the edge of the opening.
  • A sign in Seattle at the beginning of the episode shows Interstate 13 North. The only interstate running north is Interstate 5. There are also no highways numbered 13 in Washington, nor is there an Interstate 13 anywhere in the country.
  • During Helicopter Fight, when Lyla's jacket is on, she's wearing blue pants and black boots. But when it comes off, they suddenly change into blue and black striped leggings.
  • As the screen pans down at the very beginning, the writing on the donut truck is reversed.
  • Also in one scene, the donut truck writing in a sideview mirror is printed forward and in another scene the donut truck writing says "delnery" instead of "delivery"
  • Hey, where's Perry?

    Hey, where's Perry?

    Perry is absent from the initial wide shot at Niagara Falls.
  • The first time the engine is shown, it has no rear truck (wheels), so it is floating. The only floating trains are seen in Japan.
  • When Bannister jumps out of the helicopter, he appears to be falling over suburban Danville instead of the Canadian mountains. However, the helicopter on which he and everyone else was on could have been flying over Danville at the time that he fell.
  • Major Monogram's monobrow is black instead of grey when they are in Niagara Falls.
  • When a Royal mountie put a criminal into a truck his suit is a Dark blue suit, rather than the red suit royal mounties wear.
  • During the first few close-ups of Doofenshmirtz in the train, the maple leaf pattern on the side extends onto the seat.
  • Doofenshmirtz says Niagara Falls is "close by" when he and the rest of the group were at the Canadian Parliament Buildings. In reality, Parliament Hill is in Ottawa, while Niagara Falls is near Toronto, which is, by car, over 5 hours apart driving. However, it is possible they would've passed by Niagara Falls on their way back to Danville anyways.
  • When leaving Niagra Falls, Peter the Panda is shown with a mouth and chin.
  • It is depicted snowing on the Canadian side. However, since the show takes place in summer, it couldn't possibly be snowing in Canada.
  • Bannister mentions annexing Canada to Greenland. This is very unlikely, as Greenland belongs to the Kingdom of Denmark, so in order to annex anything it'd have to get approval from the Danish government which would definitely rather have the Canada become another constituent of the Denmark instead of handing it to Greenland. This could also lead to big trouble with the British Commonwealth (which rules over Canada) as well as the US and NATO. Therefore, even if his plan does succeed, it'll lead to many times more trouble than what he planned for, and much more trouble than it's worth simply for 'national pride'.



  • (Don't Fear) The Reaper  - The theme that plays during Agent P's pursuit of the thieves is in the style of (Don't Fear) The Reaper by Blue Öyster Cult.
  • Ocean's Eleven - The scene taking place in front of Niagara Falls follows the ending of the 2001 film (a remake of the one in 1960). Dr. Doofenshmirtz is the last to leave, and as he does so, he walks past a group of ten men standing at the railing, watching the waterfall. The sizes, positions and appearance matches the scene where Danny's crew stands in front of the Bellagio to watch the fountains.
  • Felidae - The scene in which Perry is teamed up by Lyla is similar to the 1994 film.
  • William Hull - While fighting Doofenshmirtz, Lyla says, "This is for William Hull and the War of 1812. Look it up, kids!" During the War of 1812, Hull invaded Canada.
  • The literal helicopter fight cutaway is done in the style of the Fleischer brothers, who were best known as the animators behind Koko the Clown, Betty Boop and Popeye.



  • designates a character that did not appear in this episode
  • designates a character that only had a speaking cameo in this episode


"Der Kinderlumper"
Episodes Next:
"Primal Perry"