fix clamscan and other bugs