added site whitelists, added debug element