 Between 397 and 402 , Ge Chaofu compiled a series of scriptures which later served as the foundation of the Lingbao school , which unfolded its greatest influence during the Song dynasty ( 960 – 1279 ) . Several Song emperors , most notably Huizong , were active in promoting Taoism , collecting Taoist texts and publishing editions of the Daozang . 
