c wrapper for utp