flush std stream