Ricky Gervais as the ambitious David Brent in The Office. Al-Qaeda has its share of HR issues too a cache of letters found in North Africa show. Credit:BBC It's a glimpse into both the inner workings of a highly structured terrorist organisation that requires its commanders to file monthly expense reports, and the internal dissent that led to his rise. And it foreshadows a terrorism landscape where charismatic jihadists can carry out attacks directly in al-Qaeda's name, regardless of whether they are under its command. Rudolph Atallah, the former head of counterterrorism for Africa at the Pentagon and one of three experts who authenticated the 10-page letter dated October 3, said it helps explain what happened in Algeria and Niger, both attacks that Mr Belmoktar claimed credit for on jihadist forums. "He's sending a message directly north to his former bosses in Algeria saying, 'I'm a jihadi. I deserve to be separate from you.' And he's also sending a message to al-Qaeda, saying, 'See, those bozos in the north are incompetent. You can talk to me directly.' And in these attacks, he drew a lot of attention to himself," says Mr Atallah, who recently testified before Congress on Mr Belmoktar's tactics. Born in northern Algeria, the 40-something Mr Belmoktar, who is known in Pentagon circles by his initials MBM, travelled to Afghanistan at the age of 19, according to his online biography. He claims he lost an eye in battle and trained in al-Qaeda's camps, forging ties that would allow him two decades later to split off from its regional chapter.

Algerian soldiers and officials stand in front of the gas plant in Ain Amenas, seen in background, during a visit organized by the Algerian authorities following the January 2013 attack directed by Moktar Belmoktar. Credit:AP Over the years, there have been numerous reports of Mr Belmoktar being sidelined or expelled by al-Qaeda in the Islamic Maghreb. The letter recovered in Timbuktu, one of thousands of pages of internal documents in Arabic found by the AP earlier this year, shows he stayed loyal to al-Qaeda in the Islamic Maghreb, or AQIM, until last year, and traces the history of their difficult relationship. The letter, signed by the group's 14-member Shura Council, or governing body, describes its relationship with Mr Belmoktar as "a bleeding wound," and criticises his proposal to resign and start his own group. "Your letter ... contained some amount of backbiting, name-calling and sneering," they write. "We refrained from wading into this battle in the past out of a hope that the crooked could be straightened by the easiest and softest means. ... But the wound continued to bleed, and in fact increasingly bled, until your last letter arrived, ending any hope of stanching the wound and healing it." They go on to compare their group to a towering mountain before raging storms and pounding waves, and say Mr Belmoktar's plan "threatens to fragment the being of the organisation and tear it apart limb by limb."

They then begin enumerating their complaints against Belmoktar in 30 successive bullet points. "Abu Abbas is not willing to follow anyone," they add, referring to him by his nom de guerre, Khaled Abu Abbas. "He is only willing to be followed and obeyed." First and foremost, they quibble over the amount of money raised by the 2008 kidnapping of Canadian diplomat Robert Fowler, the highest-ranking United Nations official in Niger, and his colleague. Mr Belmoktar's men held both for four months, and in a book he later published, Mr Fowler said he did not know if a ransom was paid. The letter says they referred the case to al-Qaeda central to force concessions in the US-led war in Afghanistan, a plan stymied when Mr Belmoktar struck his own deal for 700,000 euros ($936,000) for both men. That's far below the $US3 million per hostage that European governments were normally paying, according to global intelligence unit Stratfor. "Rather than walking alongside us in the plan we outlined, he managed the case as he liked," they write indignantly. "Here we must ask, who handled this important abduction poorly? ... Does it come from the unilateral behavior along the lines of our brother Abu Abbas, which produced a blatant inadequacy: Trading the weightiest case (Canadian diplomats!!) for the most meager price (700,000 euros)!!"

The complaint reflects how al-Qaeda in the Islamic Maghreb, initially considered one of the group's weaker wings, rose to prominence by bankrolling its operation with an estimated $US89 million raised by kidnapping-for-ransom foreign aid workers and tourists. No less than Osama bin Laden endorsed their business model, according to documents retrieved in the terror leader's hideout in Pakistan. The letter also confirms for the first time that payments from European governments went directly toward buying arms to carry out attacks against Western targets, as long speculated by experts. The council chides Mr Belmoktar for not following this practice. "(The chapter) gave Abu Abbas a considerable amount of money to buy military material, despite its own great need for money at the time. ... Abu Abbas didn't participate in stepping up to buy weapons," the letter says. "So whose performance deserves to be called poor in this case, I wonder?" The list of slights is long: He would not take their phone calls. He refused to send administrative and financial reports. He ignored a meeting in Timbuktu, calling it "useless." He even ordered his men to refuse to meet with al-Qaeda emissaries. And he aired the organisation's dirty laundry in online jihadist forums, even while refusing to communicate with the chapter via the Internet, claiming it was insecure. Sounding like managers in any company, the Shura leaders accuse Mr Belmoktar of not being able to get along with his peers. They charge that he recently went to Libya without permission from the chapter, which had assigned the "Libya dossier" to a rival commander called Abou Zeid. And they complain that the last unit they sent Mr Belmoktar for backup in the Sahara spent a full three years trying to contact him before giving up.

"Why do the successive emirs of the region only have difficulties with you? You in particular every time? Or are all of them wrong and brother Khaled is right?" they charge. The letter reveals the rifts not only between Mr Belmoktar and his superiors, but also the distance between the local chapter and al-Qaeda central. The local leaders were infuriated that Mr Belmoktar was essentially going over their heads, saying that even AQIM has had few interactions with the mother brand in Pakistan and Afghanistan, a region they refer to by the ancient name of Khorasan. "The great obstacles between us and the central leadership are not unknown to you. ... For example, since we vowed our allegiance, up until this very day, we have only gotten from our emirs in Khorasan just a few messages, from the two sheiks, bin Laden (God rest his soul) and Ayman (al-Zawahri)," they write. "All this, despite our multiple letters to them." Mr Belmoktar's ambition comes through clearly not only in the bitter responses of his bosses, but also in his own words: "Despite great financial resources ... our works were limited to the routine of abductions, which the mujahedeen got bored with." In another quote, he calls bin Laden and al-Zawahri "the leaders of the Islamic nation, not the leaders of an organisation alone. We love them and we were convinced by their program. ... So it's even more now that we are swords in their hands."

To which AQIM replies with more than a hint of sarcasm: "Very lovely words. ... Do you consider it loyalty to them to revolt against their emirs and threaten to tear apart the organisation?" Mr Belmoktar's defection was a long time in the making, and dates back to his time as a commander of Algeria's Salafist Group for Preaching and Combat, or GSPC. When the Iraq war started in 2003, his ambition created friction between younger Algerian fighters like himself, who wanted to join the global jihad, and an older generation whose only goal was to create an Islamic state in Algeria, according to Islamic scholar Mathieu Guidere, a professor at the University of Toulouse. The younger faction won, but Mr Belmoktar felt slighted because his contemporary, Abdelmalek Droukdel, was named emir of the GSPC, instead of him. Soon after, the group petitioned to join al-Qaeda. The terror network announced a "blessed union" on the anniversary of the September 11 attacks in 2006. Both Mr Belmoktar and Mr Droukdel wrote "candidacy letters" to bin Laden asking to be emir, according to Mr Guidere's book on the subject. Again, Mr Droukdel won.

Frustrated, Mr Belmoktar drifted farther south. He set up in the ungoverned dunes of neighbouring Mali, took a Malian wife and tapped into the smuggling routes that crisscrossed the Sahara, amassing arms and fiercely loyal fighters who called themselves, "The Masked Brigade." His fighters killed more than a dozen soldiers at a military garrison in Mauritania in 2005 and gunned down four French tourists there in 2007. On multiple occasions Mr Belmoktar was declared dead, including most recently in March, and each time, he re-emerged to strike again. The sharpest blow in the council's letter may have been the accusation that, despite this history of terrorism, Mr Belmoktar and his unit had not pulled off any attack worthy of mention in the Sahara. "Any observer of the armed actions (carried out) in the Sahara will clearly notice the failure of The Masked Brigade to carry out spectacular operations, despite the region's vast possibilities — there are plenty of mujahedeen, funding is available, weapons are widespread and strategic targets are within reach," the letter says. "Your brigade did not achieve a single spectacular operation targeting the crusader alliance." In December, just weeks after receiving the letter, Mr Belmoktar declared in a recorded message that he was leaving the al-Qaeda chapter to form his own group. He baptised it, "Those Who Sign in Blood."

With that name, he announced his global ambition. "Those Who Sign in Blood" was also the name of an Algerian extremist unit that hijacked an Air France flight leaving Algiers in 1994. Though their goal to fly the plane into the Eiffel Tower in Paris was thwarted, the unit foreshadowed the terrorist vision that led to the fall of the Twin Towers in New York. On January 11, French warplanes began bombarding northern Mali, the start of a now 5-month-old offensive to flush out the jihadists, including Mr Belmoktar's brigade. Five days later, suicide bombers took more than 600 hostages in Ain Amenas in far eastern Algeria and killed 37, all but one foreigners, including American, French and British nationals. Mr Belmoktar claimed responsibility in a triumphant recording. It was no accident that he chose Ain Amenas, Mr Guidere said. The area is in the home province of Abou Zeid, Mr Belmoktar's longtime rival who commanded a different Saharan brigade and was always in step with the Algeria-based emirate. "It's a punch in the gut," Mr Guidere said. "It's saying, 'You've never been able to do anything even in your native region. Watch me. I'll carry out the biggest hostage operation ever in that very region. ... Ain Amenas is the illustration of his ability to do a quality operation, when he is under no authority other than his own, when he doesn't have to turn in expense reports or answer to anybody." As if to turn the knife even further, last week Mr Belmoktar also claimed responsibility for a May 23 attack at a French-owned uranium mine in Arlit, Niger. It was in Arlit in 2010 that Abou Zeid carried out his boldest operation and seized seven foreign hostages, including four French nationals who are still in the hands of AQIM.

In an apparent attempt to raise the stakes, Mr Belmoktar's men slipped past a truck entering the mine and detonated explosives inside. More than 100 miles to the south, a different unit of fighters under his command killed 24 soldiers at a military camp, with help from another local al-Qaida off-shoot, called the Movement for Oneness and Jihad in West Africa. Jean-Paul Rouiller, the director of the Geneva Center for Training and Analysis of Terrorism, compared the escalation in attacks to a quarrel between a man and a woman in which each tries to have the last word. "They accused him of not doing something," Mr Rouiller said. "His response is, 'I'll show you what I can do.'" Mr Belmoktar might have seen a certain justice in the coverage of the last week's attack in Niger in the leading French daily, Le Monde. Among the adjectives used to describe the event: "Spectacular." AP