add g-sensor control