added data logging for accel data