Nominally, sovereignty lay in the emperor but in fact power was wielded by the Fujiwara nobility. Who threatened the central governments authourity during the 9th century A.D.