added handling for multiple error codex=s