remove unused imports to is_valid_host since we can retrieve flashes now