fixed c++ bindings, they where binding to all modes