based off mod_codec_skel now