last bugs fixed on new file format