change hardcoded urls to generated ones