removed unnecessary site filtering
extracted email appending script