add callback parsing in BamParallelRewrite