add error handling when given failing script calls