closes #10 add a way to get detailed error messages