fixed memory leak, mediadot and pcgarage work also