wrappers for c functions updated