todo for checking file streams