make media .files scope handle different file types