additional error catching