making changes to linkages migration script - preparing data for node creation