fixed reading of files with multiple blocks!