crypt class now throws exceptions and not catches them