api changed: can init bufferproducer in one line code