resolved is_open check on streams