upgrade to media module codebase