error handling incresed; XML Builder replaced by nokogiri's one