fix sample to match new stream_acceptor