added params property for safeUrl, remove keys parameter