added error script customizable by users.