added media dir config