wrapped with a call to  to catch exceptions