implemented lazy media manager