slightly refactored Model.setOptions