script to create links