doing some small refactoring getting ready to begin work on scan