added try around whitelist.txt to make it optional