added lock to update merger