removed last PR, and added Persistant flymode codes