updted RedFly lib