added media pool functions