add a flag for merge