allow configuring maxframes and prebuffer