misnaming and misthrowing exceptions, fixed the name errors