bug fix and get more internal functions in searchgraph