changed pathToMedia to be local