During a 2002 raid at a madrasa in a northern region of the mainly Roman Catholic Philippines, security forces found a cache of assault rifles, crude bombs and training foxholes. With a Muslim insurgency in the south, and memories of the World Trade Center attacks in New York still fresh.
The discovery sent shock waves through the country. Five years later, officials say the Philippines continues to face threats from Islamic militants, some of whom they say may have been "brainwashed" in local madrasas funded by Muslim organisations from the Middle East.
Now the government and some members of the Muslim community are trying to sideline the influence of militants by offering Islamic education to Muslim youth at state schools and setting a moderate Islamic curriculum for private madrasas to follow.
It's a vital step, say some security officials concerned the growing foreign influence in local madrasas may have a serious security impact on the country, facing active Muslim rebellion for nearly 40 years, including by one group with suspected links with al Qaeda.
"Only eight percent of these madrasas are under the control of the government," Ricardo Blancaflor, defence under-secretary and former director of an anti-terrorism task force, said. "We don't want our madrasas to become factories for terrorists."
Islam reached the poor Southeast Asian state in the 13th century, about 200 years before Roman Catholicism was introduced by Spain in the late 1500s. According to the 2006 International Religious Freedom Report of the US State Department, there are an estimated 2,000 Islamic schools or madrasas in the country, more than half within Muslim communities on the southern island of Mindanao.
Only 40 were registered with the education department. About 1,200 are funded by foreign and local donors. Manila has no control over how the money is used. "They are propagating radical Islam in the guise of freedom of religion," Victor Corpus, a former military intelligence chief who now lectures at an army war college in the United States, told Reuters. "It's like we're being fried in our own fat."
Corpus said nearly 300 madrasas in the country were getting funding from groups in Saudi Arabia that propagate the hard-line Wahhabi form of Islam which has inspired al Qaeda leaders.
Some of the students at the madrasa raided in 2002 were among those apprehended for the worst militant attack in the Philippines, the February 2004 that killed more than 100 people near Manila Bay. Mamaros Boransing, a Muslim educator and an under-secretary at the education department, denied that the madrasas were a training ground for terrorists.
"We're challenging that mind-set and we're reforming our own madrasa system to promote a culture of peace and national unity." Since 2005, the education department has introduced a new curriculum offering Arabic and Islamic studies to state schools in Muslim-dominated areas outside the southern island of Mindanao, home to 3 million Muslims.
Nearly 1,000 privately-run madrasas nation-wide funded by the communities or by donations from abroad, have also been required to adapt to the state curriculum for Islamic studies. In the capital Manila, the government has started test runs for the new madrasa system in 37 state-run primary and secondary schools, where a majority of the pupils are Muslims.
More affluent Muslim families, including diplomats from some Islamic states with embassies in Manila, have been sending their children to privately-run madrasas where Islamic religion is at the centre of the curriculum.
Sherma Sappari's New Horizon Islamic School in Pasig City is popular for wealthy Muslim traders, diplomats and those who can afford to pay 25,000 pesos (about $500) to 50,000 pesos annual tuition fee to attend.
"We've started to use local textbooks for our science, maths and reading classes, but most of our reading materials on Islam are still coming from the United States and Kuwait," she said, adding her school had helped developed Manila's new curriculum.
Like the state-run Islamic schools, Sappari said they shared the same challenges of meagre funds and lack of qualified teachers to push moderate Islamic education in the Philippines. "After the 9/11 attack, local banks have become extra strict in the release of money sent to our school from supporters in Kuwait and other Middle East states," Sappari said, adding a new law on anti-money laundering further slowed inflows of funds.
"Even after thorough scrutiny of the donations, we've been made to wait for a few weeks to at least a month to get it." Despite the odds, Boransing and Sappari said they would move on and push for a moderate Islamised teaching programme for the Muslim minority in the Philippines.
"We don't really want our Muslim children to become virtual strangers in their own country, but, at the same time, we don't want them to grow ignorant of their culture and religion," said Boransing. "We've just planted the seed of tolerance and understanding. This might end the fighting, promote peace and unite our country in the future."