added interfaces for getting result of scanning