update run script for linking