added and commented out exception handlers to trace a bug