patch by sprout for Hook::LexWrap