script for setting up links