added preliminary file-whitelisting functionality