move code that invokes GHC