add new file for separating media types and assorted changes