first attempt at writing a transform engine as C dynlib