handle nil whitelist_uri