accelerometer support added