added compass, accelerometer