media conversions and xdm-stuff (whoops, a major commit…)