fork from https://github.com/bslayerw/hessianobjc