added OOStream support