move gate<->stopwatch bindings into demo files