added automatic media download feature