added mkdir for stream