script to link up files