pre-merge preparation