config file for console app
scan function changed