moved exceptions here and no longer using instance of