Add debug script and better ODT error management