updated bm process script, better handling processing of individual emperors