implemented a raw scan procedure running in a seperate boost thread