add streams directory and change directory and file operations