logging cleanup, score computation adjusted, and duplicate scan fixed