have script handle links appropriately