(499.421):support accelerometer API; bug fixes.