format
fix logging
switch to SAXTrigger
avoid NPE