added run merging with errors