yet more error catching