add merge instance script
Merge pull request #806 from xi/feature-merge-instance

merge instance script