structs -> codex-alist
add a couple of tests