changed urlByName func to urlConfig func