code: func SetChains(cs []Chain) {
  	newcs := []Chain{}
  	// migrate old chain style
  	for _, c := range cs {
  		for _, el := range c.Elements {
  			if el.Action.Name != "" {
  				el.Action.ID = UUID()
  				c.Actions = append(c.Actions, el.Action.ID)
  				actions = append(actions, el.Action)
  			}
  			if el.Filter.Name != "" {
  				//FIXME: migrate old style filters
  				c.Filters = append(c.Filters, el.Filter.Options.Value.(string))
  			}
  		}
  		c.Elements = []ChainElement{}
  
  		newcs = append(newcs, c)
  	}
  
  	chains = newcs
  }
docs: // SetChains sets the currently configured chains