add some accelerometer apis