improve extension hook for block parsers