accelerometer working fine on client