added some bindings for R