bindings set up, api cleaned etc