implemented error handlers in load cookies, remove cookies and save model scripts