updates to scanner.c and pantry_api.c