bring in gapstack core from prototype