added media helpers, including xml