reading blocks from file