added media permissions