stream: make callbacks static