target directory handling

stream data handling