rewritted server and client to get acceleration from imu remotely