added media manager and class