Remove Scanner interface. fix compilation error