refactor for multistate vmd
multistate seems to work in plugin