change the way to set plugin options