added a scan function on the config