Add C Native code

code tested on single server