[Qickhack] add primary.xml generation