fixed bindings to match updated C code