cath split errors so the script doesn't die