now able to save to file the number of metadatablocks