The play centers on an unethical, antiheroic criminal Macheath (Mack the Knife) who marries Polly Peachum, the only daughter of the big boss of the beggars who runs the streets of London. Disappointed of her daughter’s sudden decision, he plans to condemn Macheath of his doings and have him executed publicly by hanging; however, his attempts to entrap and pull down Macheath are hindered by the fact that Tiger Brown, the Chief of Police, is Macheath’s old pal. Still, Peachum asserts his influence and eventually leads Macheath to his arrest and death sentence. Macheath avoids his fate through a deux ex machina (a theatrical device), wherein an unexpected character is inserted to intervene with or resolve the protagonist’s situation. His remarkable end is stopped by the surprising declaration coming from the messenger of the Queen relaying Her Majesty’s message to grant Macheath Royal pardon. Despite all his doings, he escapes the finale usually described by the part wherein the bad guy ...
There are many suitable places for this bug to develop and grow. I think it has already found one.