eliminating shared resource ownership in the scanner module