add reference frame support to vmd plugin