fixed bug where whitelist was imported as a string and not a list