scripts for checking error handling