enhancing error handling for ensemble add
enhancing error handling for ensemble remove