add nullstream support