various fixes, tweaks, ideas etc
happy that read is working again, turned out to just be libxml