lets try to catch thrown errors so that the modify is not cancelled