issue #4636. refactor CheckBoxReader