add error analysis preliminary script