vale read/write is working. implemented for acceleraomter enable