support streams in Dir