improve gyro plugin