hook up some c-level code