updated file entity module to work with newer version of media