Bug fixes, XMLStream can bind to resources (in a hackish manner)