refactored virus scanner