added compressed header support (thanks @kevinlekiller), improves scan speed significantly