improved BSMAP pipeline