codec -> protocols reorganization