added error handling module.