updated script to include relative links