file format changes and a debug mode