Update ice to support goc/ein toggle

This is hacked in kind of quickly to get things working. The current
design probably wouldn't scale well in practice.