add url recognition for differernt media types