fixed typo and added extra message arg to exceptions.