# added exception handling & logging infrastructure