add active-section parser

add active section state to lib
more internal changes renames