removing hardcoding from curl URL generation