file stream now works