fix autobug warning about stale states
fix autobug about malformed pdef xml
Fixes to work with FBOSD (support sysId != 1)