add more ghc api hooks