fixed error in partial clone
Made transformer API compilable (not yet functional)