updated gernet c implementation