adding a new script for migrating linkages