first draft of ValveController