refactored, improved script linkdata