allow for missing 005; fix 040a non-code treatment