upstream updates; checking for mediatype