fix incorrect variable type
add -w SECTION command line option