"I, Mudd" is the eighth episode of the second season of the American science fiction television series Star Trek. Written by Stephen Kandel (based on a story by Gene Roddenberry) and directed by Marc Daniels, it was first broadcast on November 3, 1967. The crew of the Enterprise has a second encounter with the conman Harry Mudd (Roger C. Carmel), first seen in the season one episode "Mudd's Women". Mudd is now the supreme ruler of a planet of androids who cater to his every whim. Although Kandel is the credited writer on the episode, David Gerrold performed an uncredited rewrite. The final script was heavily revised by the staff, and Gerrold admits that only one original idea of his made it into the final episode. He also claims producer Gene L. Coon offered to put the matter of credit up for Writers Guild arbitration but that he declined. Plot An alien android posing as a Starfleet lieutenant and identifying himself as Norman, hijacks the Enterprise by sealing off engineering and setting a booby trap which would cause any attempt to restore control to destroy the ship. Captain Kirk finds his ship and crew taken to an unknown planet populated by androids, and meets an old nemesis, the outlaw Harry Mudd. Calling himself "Mudd the First" and ostensibly ruling the androids. Mudd displays a darkened glass panel, which he calls a "shrine" to his wife Stella. It contains an android version of his wife which nags him as she did, but he is able to silence her instantly by ordering her to "shut up". Mudd explains that he broke out of prison, stole a spaceship, crashed on this planet, and was taken in by the androids. He says they are accommodating, but refuse to let him go unless he provides them other humans to serve and study. Mudd informs Kirk that he and his crew are to serve this purpose and can expect to spend the rest of their lives there. Kirk questions the androids and discovers they were built by travelers from the Andromeda Galaxy whose planet was destroyed by a supernova, leaving the androids to fend for themselves. First Officer Spock discovers the androids number over 200,000, and concludes that there must be some central control mechanism. The Enterprise crew is beamed to the surface and replaced with an android crew. They find much appealing about the androids'