added support for local media folders (declaratii pentru inceput)