file stream bugs are removed