trying to add url func to script