getting stream and command in order