fixed for flight wiring, pd num reversal, commit before integrating other two loops