prepare for cascading invoke
entirely fix the token offset bug & ppt match improve