remove streams fn and message passing