add api to start/stop cpature