init refactor/media fork