update to new libosc API