bug fixes in the output library that didn't properly quote attributes within the output statement