more work on the file stream