now with error catching integration