history of actual Bai Mei or Bak Mei:
https://en.wikipedia.org/wiki/Bak_Mei

https://en.wikipedia.org/wiki/Bak_Mei
The leader of the Shaolin Temple, Hong Mei (“Red Eyebrows”) died, leaving his legacy to Chi Thien Su, also known as Jee Sin, one of the five Great Kung Fu Masters. According to some stories another such master, Chu Long Tuyen, the monk who would later become Bak Mei, did not accept this. He believed the Ming had become corrupt and Chi Thien Su would still serve them; Bak Mei would rather serve the foreign Qing Dynasty. Then came the attack against the Shaolin Temple at Quanzhou in Fujian province in 1647. Some sources indicate that this temple was actually in Henan, or that the invading forces recruited help from Tibetan warriors in the attack. The Five Elders survived, however, and soon Chi Thien Su would found a second Shaolin Temple at Nine Lotus Mountain, also in Fujian Province. The Five Kung Fu Masters survived the first destruction of the Shaolin Temple by Qing Imperial forces and sought shelter in another temple, Fujian Temple, but the other monks were massacred. After Bak Mei refused to provide his real name for fear of retribution (against his family and students - if they survived), the Abbott of the temple christened the monk “Bak Mei”