refactored medialoader to manage single file manifest and array of file manifests