flexible scanning classes in package