fixed cookies and find media files