first draft of the codec