extract sample codex into standard edn mechanism