minor fixes. generating correct media path