added script to generate url