move streams to arguments