add simple parallel BAM rewriting