Minor: disable debug, change whitelist fn