Fix streams - extract to ostream